/**
 * Author: Daniel Michalski
 * Date: 28.02.13
 */

public class GenConstr {
    private double val;

    <T extends Number> GenConstr(T arg) {
        val = arg.doubleValue();
    }

    public void showVal() {
        System.out.println("wartość: " + val);
    }
}
